package com.waji.service;

import com.waji.http.SendState;
import com.waji.local.NextDay;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class StateReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
    	NextDay day = new NextDay();
		day.CreatFile(context);
    	SendState ss=new SendState();
    	ss.saveState(context); 
        Intent i = new Intent(context, StateService.class);
        context.startService(i);
    }
}
